// 下载器配置类型
export interface ClientConfig {
  id?: number;
  client_type: 'qb' | 'transmission';
  host: string;
  port: number;
  username: string;
  password: string;
}

// 扫描路径类型
export interface ScanPath {
  id: number;
  path: string;
  enabled: boolean;
  created_at: string;
}

// 创建扫描路径类型
export interface ScanPathCreate {
  path: string;
  enabled: boolean;
}

// 扫描文件类型
export interface ScanFile {
  id: number;
  file_name: string;
  file_path: string;
  file_size: number;
  status: 'not_seeding' | 'deleted';
  scan_time: string;
  action_time?: string;
}

// 扫描状态类型
export interface ScanStatus {
  status: 'scanning' | 'completed' | 'error';
  progress?: number;
  total_files?: number;
  not_seeding_files?: number;
  error_message?: string;
}

// API响应类型
export interface ApiResponse<T> {
  success: boolean;
  message?: string;
  data?: T;
}

// 分页响应类型
export interface PaginatedResponse<T> {
  items: T[];
  total: number;
  page: number;
  page_size: number;
}

export interface Config {
  id: number
  client_type: string
  host: string
  port: number
  username: string
  password: string
  enabled: boolean
}

export interface ConfigCreate {
  client_type: string
  host: string
  port: number
  username: string
  password: string
}
